<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>合同列表</title>
<link href="../Styles/css.css" rel="stylesheet" type="text/css" />
<script src="../Scripts/My97DatePicker/WdatePicker.js"
	type="text/javascript"></script>
<script src="../Scripts/jquery-1.4.1.min.js" type="text/javascript"></script>
<script src="../Scripts/IndexManager.js" type="text/javascript"></script>
<script src="../Scripts/selectProject.js" type="text/javascript"></script>
<script type="text/javascript">
	function openWin() {

		showModalDialog(
				"/wanda/project/Wd_ht_project_add.do",
				"example04",
				"dialogWidth:600px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes")
	}

	function openWin1() {

		/* showModalDialog(
				"/wanda/project/Wd_ht_project_add.do",
				"example04",
				"dialogWidth:600px;dialogHeight:300px;dialogLeft:200px;dialogTop:150px;center: yes;help:yes;resizable:yes;status:yes") */
			location.href="/wanda/project/Wd_ht_project_toAdd.do" ;	
	}
</script>
</head>
<body style="margin-top: 5px; background: #EFF3FF;">
		<div id="divOne">
			<div class="cxlb_2" id="indexs">
			<h2>查询合同列表</h2>
			<form action="/wanda/contract/list.do" method="post">
				合同内容：<input type="text" name="contractContent"/>
				合同甲方：<input type="text" name="firstParty" />
				合同乙方：<input type="text" name="secondParty" />
				<input type="submit" value="查询 " />
			</form>
			<h2>合同信息列表</h2>
				<table width="100%" class="tablist">
					<thead>
						<tr>
							<th width="15%">合同内容</th>
							<!-- <th width="15%">订单号</th>
							<th width="15%">房间</th> -->
							<th width="15%">签约时间</th>
							<th width="15%">合同甲方</th>
							<!-- <th width="15%">合同乙方</th> -->
							<th width="15%">业务员名称</th>
							<th width="15%">付款方式</th>
							<th width="15%">总价</th>
							<th width="15%">状态</th>
							<th width="">操作</th>

						</tr>
					</thead>
					<tbody id="tab">
						<c:forEach var="list" items="${ clist }">
							<tr>
								<td width="15%">${ list.contractContent }</td>
								<%-- <td width="15%">${ list.order.orderId }</td>
								<td width="15%">${ list.room.roomCode }</td> --%>
								<td width="15%"><fmt:formatDate value="${list.signTime}" pattern="yyyy-MM-dd"/></td>
								<td width="15%">${ list.firstParty }</td>
								<%-- <td width="15%">${ list.secondParty }</td> --%>
								<%-- <td width="15%">${ list.customer.customerName}</td> --%>
								<td width="15%">${ list.name }</td>
								<td width="15%">${ list.payTypeName }</td>
								<td width="15%">${ list.total }</td>
								<td width="15%">${ list.deleteState }</td>
								<td>            
                    		<a href="/wanda/contract/toupdate.do?contractId=${list.contractId}">详细信息&修改</a>
                         	||<a href="javaScript:void(0)" onclick="del('${list.contractId}')">删除</a></td> 
							</tr>

						</c:forEach>
					</tbody>
					<tr>
				</tr>
					
				</table>
			<!-- <a href="/wanda/contract/toadd.do"><h2>添加合同信息</h2></a> -->
			</div>
		
		</div>
		<input type="hidden" name="hidProductIdSelect" id="hidProductIdSelect" />
			 <script>
             //删除
                function del(contractId){
			  		if(confirm('是否删除？')){
			  			location.href="/wanda/contract/delete.do?contractId="+contractId;
			  		}
			  	}
            </script>
</body>
</html>





